<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" th:href="@{/css/bootstrap.css}"/>
</head>

<body>

<div style="width:800px;height:100%;margin-left:150px;">
    <form action="/user/insert" method="post">
        姓名：<input class="form-control" type="text" th:value="${name}" name="name"><br>
        生日：<input  type="text"  th:value="${#dates.format(datetime,'yyyy-MM-dd')}" name="datetime"/><br>
        <button class=" btn-primary btn-sm btn-block">保存</button>
    </form>
</div>

</body>
</html>